package File_IO;

import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2023-02-07
 * Time: 17:06
 */
public class IODemo4 {
    public static void main(String[] args) {
        try(Reader reader = new FileReader("e:/test.txt")) {
            while(true) {
                int ch = reader.read();
                if(ch == -1) {
                    break;
                }
                System.out.print(" " + (char)ch);
            }
        }  catch (IOException e) {
            e.printStackTrace();
        }
    }
}
